import request from '@/utils/request'
// 获取部门
export const getDepartments = () => request.get('/company/department')

// 获取部门负责人
export const getEmployeesSimple = () => request.get('/sys/user/simple')

// 添加子部门
export const addDepartments = (data) => request.post('/company/department', data)

// 获取部门详情
export const getDepartmentsDetail = (id) => request.get(`/company/department/${id}`)

// 编辑部门
export const editDepartments = (data) => request.put(`/company/department/${data.id}`)

// 删除部门
export const delDepartments = (id) => request.delete(`/company/department/${id}`)
